package a15_MapAndSet;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/4/8 22:08
 */
public class MyHashMapTest {
    public static void main(String[] args) {
        MyHashMap hashMap = new MyHashMap(4);
        //增加元素
        hashMap.put(12,3);
        hashMap.put(1,3);
        hashMap.put(4,9);
        //判断是否包含key值
        System.out.println(hashMap.containsKey(12));
        System.out.println(hashMap.containsKey(7));
        //判断是否包含value值
        System.out.println(hashMap.containValue(3));
        System.out.println(hashMap.containValue(5));
        //删除指定的key值
        System.out.println(hashMap.removeKey(12));
        System.out.println(hashMap.removeKey(3));
    }
}
